<?php

namespace app\index\controller\ad;

use ShidianUtil\Thinkphp\Response\ApiResponse;
use think\facade\Cache;

/**
 * 广告页上面数字
 * Class Number
 * @package app\index\controller\ad
 */
class Number
{
    /**
     * 人数
     * @return ApiResponse
     */
    public function read(): ApiResponse
    {
        $key = 'adnumber';

        $data = [
            'number' => Cache::get($key),
        ];

        return ApiResponse::success($data);
    }

}
